Edit Resource: AvailSTKRepDef
Format
SCHED / EditResource '<ResourceName>' AvailSTKRepDef <# Reports> <Rep1Start> <Rep1Stop> <Rep1WindowType> <Rep1StartOffset> <Rep1StopOffset> <Rep1Duration> '<Rep1STKObject1>' '<Rep1STKObj2>''<Rep1ReportName>' <Rep1MaintTimeOffset> ... <RepNStart> <RepNStop> <RepNWindowType> <RepNStartOffset> <RepNStopOffset> <RepNDuration> '<RepNSTKObject1>' '<RepNSTKObject2>' '<RepNReportName>' <RepNMaintTimeOffset>
Description
The AvailSTKRepDef attribute under EditResource defines one or more STK Report Definitions and any previous Availability STK Report Definitions are deleted.
Parameters
Parameter | Description |
---|---|
# STK Reports | An integer value that indicates the number of STK Report definitions that are contained within the command. |
RepNStart | Report Start Time. The format is YYYY/MM/DD_HH:MM:SS or YYYY/MM/DD_HH:MM:SS.fff. |
RepNStop | Report Stop Time. The format is YYYY/MM/DD_HH:MM:SS or YYYY/MM/DD_HH:MM:SS.fff. |
RepWindowType | Options are 'FixedStart', 'FixedStop', or 'FixedStartOrStop'. This determines whether the window(s) generated use the report times as window start times, stop times, or can use them for either. This parameter is only required for Single Time type reports (ascending node, AOS, etc.). If not used, a filler such as 'None' should be used instead. Other report types can be automatically determined based on the selected report style name (Access, Range, etc.). |
RepNStartOffset or RepNValueRangeMin | For Single Time type reports the parameter should be entered as a number in seconds(millisecond fidelity). For Value type reports the parameter should be Value1. This parameter should be ignored if <RepNWindowType> is 'Fixed Stop'.
For Value Range reports, this is the minimum value. |
RepNStopOffset or RepNValueRangeMax | For Single Time type reports the parameter should be entered as a number in seconds(millisecond fidelity). For Value type reports the parameter should be Value2. This parameter should be ignored if <RepNWindowType> is 'Fixed Start'.
For Value Range reports, this is the maximum value. |
RepNDuration | The parameter should be entered as a number representing seconds (millisecond fidelity). If the number is negative, the report will be set to work as if the Next Time Value In Report Option in the STK Time Report Form is checked (True), which means each window will be as long as the time between each report value.
The parameter is ignored if <RepNWindowType> is set to 'Window' or 'ValueRange'. |
RepNSTKObj1 | A string of text in single quotes of the STKObject path, not including the scenario name (ex. 'Satellite/FUSE'). Empty string is not allowed and the parameter is case sensitive. |
RepNSTKObj2 | A string of text in single quotes of the STKObject path, not including the scenario name (ex. 'Satellite/TRACE'). The parameter is case sensitive and an empty string is allowed for reports that only use 1 STK Object. |
RepNReportName | A string of text in single quotes of the STK report type. This value must be compatible with the number of defined STK Objects for <RepNSTKObj1> and <RepNSTKObj2>. Empty string is not allowed and the parameter is case sensitive. |
RepNMaintTimeOffset | The parameter is either 'yes' or 'no'. If 'yes', then any report start/stop time offsets from schedule start/stop times are maintained if schedule start/stop times are changed. Empty string is not allowed. |
PostProcessorPath | The path of a script file that will be run on the STK report. The path should be a string of text in single quotes. Perl, PowerShell, and scripts or programs that may be run as commands from the Windows Command Line are supported. The script should expect one parameter, a path string for an input file (the STK report). The file will be rows of comma-separated values, with the first row giving value names. This parameter may be omitted. |
Examples
Sets the availability of the Polar resource based on the sun report from STK. The 3600s offsets further adjust the availability time, so that all start times from the STK Sun report get +1 hour and all stop times get -1 hour.
SCHED / EditResource 'Polar' AvailSTKRepDef 1 2014/01/01_00:00:00.000 2014/01/03_00:00:00.000 Window 3600.0 -3600.0 0 'Satellite/Polar' '' 'Sun' YES
Sets the availability of the TRACE resource so that the resource is only available when the spacecraft is between 5 degrees and 15 degrees latitude. The -1 is not used.
SCHED / EditResource 'TRACE' AvailSTKRepDef 1 2014/01/01_00:00:00 2014/01/03_00:00:00 None 5 25 -1 'Satellite/TRACE' '' 'Latitude' No
Sets the availability of the FUSE resource so that the resource is available for 11 minutes after each time the spacecraft hits apogee. The -1 is not used.
SCHED / EditResource 'FUSE' AvailSTKRepDef 1 2014/01/01_00:00:00 2014/01/03_00:00:00 FixedStart 0 -1 660 'Satellite/FUSE' '' 'Apogee' No
Sets the availability of the ISS resource so that the resource is available for 1 hour before umbra start for the spacecraft. The -1 is not used.
SCHED / EditResource 'ISS' AvailSTKRepDef 1 2014/01/01_00:00:00 2014/01/03_00:00:00 FixedStop -1 0 660 'Satellite/ISS' '' 'Umbra Start' No